package admin

type Role struct {
	Id      int
	Name    string
	Descr   string
	Ctime   int
	Admin   []*Admin `gorm:"many2many:AdminRole"`
	Checked bool     `gorm:"-"` // 忽略本字段
}

//定义结构体 对应的数据表
func (Role) TableName() string {
	return "role"
}
